package com.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.entity.ArticalComment;
import com.req.ArticalCommentPageReq;
import com.res.ArticalCommentRes;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticalCommentRepository extends BaseMapper<ArticalComment> {
    /**
     * 分页查询头
     *
     * @param pages
     * @param reqs
     * @return
     */
    IPage<ArticalCommentRes> searchFirst(Page<ArticalCommentRes> pages, @Param("req") ArticalCommentPageReq reqs);

    /**
     * 查询二级
     *
     * @param
     * @param
     * @return
     */
    List<ArticalCommentRes> searchSecend(@Param("req") ArticalCommentPageReq reqs);

}
